package com.spring.proxy.impl;

import com.spring.proxy.Sellable;

/**
 * @Author 咕唧
 * @Date 2022/5/19 17:30
 * @Version 1.0
 */
public class ZJ implements Sellable {
    private Sellable sellable;

    public void setSellable(Sellable sellable) {
        this.sellable = sellable;
    }

    @Override
    public void jq(Double price) {
        System.out.println("中介带人去交钱");
        sellable.jq(price);
        System.out.println("房东收完钱了");

    }

    @Override
    public void qht() {
        System.out.println("中介带人去签合同");
        sellable.qht();
        System.out.println("房东签完合同了");
    }
}
